const ueditortable = (val: any) => {
  let dom = document.createElement("div");
  dom.innerHTML = val;
  let tabdom = dom.querySelectorAll("table");
  if (tabdom.length) {
    for (let i = 0; i < tabdom.length; i++) {
      if (tabdom[i].width.indexOf("%") > -1) {
      } else {
        tabdom[i].width = tabdom[i].width + "%";
      }
    }
  }
};
export default { ueditortable };
